<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class ChangeColumnAssignStatusInTaskTable extends AbstractMigration
{
    public function up()
    {
        $users = $this->table('task');
        $users->changeColumn('assign_status', 'enum', ['values' => 'default,wait_confirm,accepted,rejected,department,executor', 'default' => 'default', 'comment' => '任务分配状态'])
            ->save();
    }

    public function down()
    {
        $this->table('task')->changeColumn('assign_status', 'enum', ['values' => 'default,wait_confirm,accepted,rejected', 'default' => 'step', 'comment' => '任务分配状态'])->save();
    }
}
